import { ElButton, ElInput } from "element-plus";
import { createComponent } from "./visualEditor.utils";

export const config = createComponent();

config.register("text", {
  label: "文本",
  preview: "预览",
  render: "渲染"
});
config.register("button", {
  label: "按钮",
  preview: <ElButton size="mini">预览</ElButton>,
  render: <ElButton size="mini">渲染</ElButton>
});

config.register("input", {
  label: "输入框",
  preview: <ElInput size="mini"/>,
  render: <ElInput size="mini"/>
});
